#ifndef __STACK_BINTREE_H__
#define __STACK_BINTREE_H__

#include "BinTree_int.h"

typedef BinTree StackBTElementType;
typedef struct {
	StackBTElementType* data;
	int last;
	int capacity;
}_StackBT, * StackBT;

#ifndef ERROR
#define ERROR NULL
#endif

StackBT stackbt_create(int capacity);
StackBT stackbt_free(StackBT s);
StackBT stackbt_push(StackBT s, StackBTElementType x);
StackBTElementType stackbt_pop(StackBT s);
int stackbt_is_full(StackBT s);
int stackbt_is_empty(StackBT s);

#endif //__STACK_BINTREE_H__